<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Search Activities</title>
</head>
<body>
<h1>活动查询</h1>

<form th:action="@{/search-activities}" method="get">
    <label for="name">活动名</label>
    <input type="text" id="name" name="name" required><br><br>

    <button type="submit">查询</button>
</form>

<hr>

<h2>查询结果</h2>

<table>
    <tr>
        <th>Name</th>
        <th>Description</th>
        <th>Date</th>

    </tr>
    <tbody>
    <tr th:each="activity : ${activities}">
        <td th:text="${activity.name}"></td>
        <td th:text="${activity.detailed_desc}"></td>
        <td th:text="${activity.createTime}"></td>
    </tr>
    </tbody>

</table>
</body>
</html>
